package com.woniu.uums.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 菜单与角色 中间表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "zy_menu_role")
public class MenuRole implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 角色id
     */
    @TableField(value = "role_id")
    private String roleId;

    /**
     * 菜单id
     */
    @TableField(value = "menu_id")
    private String menuId;

    private static final long serialVersionUID = 1L;
}